package com.ws.lv.service.impl;

import com.ws.lv.bean.Route;
import com.ws.lv.bean.RouteBySelect;
import com.ws.lv.mapper.RouteMapper;
import com.ws.lv.service.RouteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class RouteServiceImpl implements RouteService {

    @Autowired
    RouteMapper routeMapper;

    @Override
    public List<Route> selectRouteAll() {
        return routeMapper.selectRouteAll();
    }

    @Override
    public List<Route> selectRoute(RouteBySelect routeBySelect) {
        return routeMapper.selectRoute(routeBySelect);
    }

    @Override
    public int insertRoute(Route route) {
        return routeMapper.insertRoute(route);
    }

    @Override
    public int softDeleteRoute(int routeId) {
        return routeMapper.softDeleteRoute(routeId);
    }

    @Override
    public int deleteRoutes(ArrayList<Integer> routeIds) {
        return routeMapper.deleteRoutes(routeIds);
    }

    @Override
    public Route selectRouteById(int routeId) {
        return routeMapper.selectRouteById(routeId);
    }

    @Override
    public int updateRoute(Route route) {
        return routeMapper.updateRoute(route);
    }

    @Override
    public List<Route> selectRouteBySlideshows() {
        return routeMapper.selectRouteBySlideshows();
    }

    @Override
    public List<Route> selectRouteByTypes(int typeId) {
        return routeMapper.selectRouteByTypes(typeId);
    }

    @Override
    public List<Route> selectRouteByThemes(int themeId) {
        return routeMapper.selectRouteByThemes(themeId);
    }

    @Override
    public List<Route> selectRouteByName(String route_name) {
        return routeMapper.selectRouteByName(route_name);
    }

    @Override
    public List<Route> selectRoutesByType(int typeId) {
        return routeMapper.selectRoutesByType(typeId);
    }

    @Override
    public List<Route> selectRoutesBySavaNumberDesc(String route_name, Integer minRoute_price, Integer maxRoute_price) {
        return routeMapper.selectRoutesBySavaNumberDesc(route_name,minRoute_price,maxRoute_price);
    }

    @Override
    public List<Route> selectRoutesByThemeId(int themeId) {
        return routeMapper.selectRoutesByThemeId(themeId);
    }

    @Override
    public int updateRouteSaveNumber(int routeId) {
        return routeMapper.updateRouteSaveNumber(routeId);
    }

    @Override
    public int updateRouteSaveNumberMinus(int routeId) {
        return routeMapper.updateRouteSaveNumberMinus(routeId);
    }

    @Override
    public List<Route> selectRoutesBySupplierId(int supplierId) {
        return routeMapper.selectRoutesBySupplierId(supplierId);
    }

    @Override
    public List<Route> selectRoutesBySavaNumberLimits() {
        return routeMapper.selectRoutesBySavaNumberLimits();
    }


}
